package cn.ryh.listener.interfaceiml;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * @ClassName InterfaceServletContextListener
 * @Description 通过APP启动类实现ServletContextInitializer接口，重写其onStartup()注册Listener,
 *               实现ServletContextListener接口，监听ServletContext的创建与销毁
 * @Author RaoYH
 */
public class InterfaceServletContextListener implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent sce) {

        System.out.println("InterfaceServletContextListener 初始化");
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {

        System.out.println("InterfaceServletContextListener 销毁");
    }
}
